using System.Text;

namespace Storage.Client
{
	public interface IDeserializer<out T>
	{
		T Deserialize(byte[] content);
	}

	public class StringDeserializer : IDeserializer<string>
	{
		public string Deserialize(byte[] content)
		{
			return Encoding.UTF8.GetString(content);
		}
	}

	public class BytesDeserializer : IDeserializer<byte[]>
	{
		public byte[] Deserialize(byte[] content)
		{
			return content;
		}
	}
}